<template>
	<view>
		<Header :showBack="true" title="订单详情" bgColor="#ace8f6"></Header>
		<view class="box">
			<view v-for="(item,index) in list" :key="index">
				<image :src="baseUrl + '/file/api/uploadFile/downloadByKey?id=' + item.productImgUrl" mode="widthFix"></image>
				<view>
					<view>{{item.productName}}</view>
					<view>
						<view>数量：{{item.quantity}}</view>
						<view> <text style="font-size: 22upx;">￥</text> {{item.price}}</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				baseUrl:getApp().globalData.baseUrl,
				list:[]
			}
		},
		onLoad(e) {
			this.getList(e.id)
		},
		methods: {
			getList(id){
				this.$http('/member/api/mall/getOwnerMallOrderDetailList?id='+id,{},res=>{
					this.list = res.data.items
				},'GET')
				
			}
		}
	}
</script>

<style scoped lang="less">
.box{
	width: 710rpx;
	margin: 0 20rpx;
	margin-top: 20upx;
	
	>view{
		display: flex;
		height: 200upx;
		align-items: center;
		background-color: #FFFFFF;
		border-bottom: 1upx solid #f3f3f3;
		margin-bottom: 10rpx;
		border-radius: 13rpx;
		>image{
			width: 130upx;
			height: 130upx;
			margin: 0 30upx;
		}
		>view{
			height: 100%;
			box-sizing: border-box;
			padding-top: 40upx;
			>view:first-child{
				font-size: 30upx;
				height: 80upx;
				line-height: 40upx;
				color: #777777;
			}
			>view:last-child{
				display: flex;
				height: 50upx;
				>view:first-child{
					font-size: 22upx;
					color: #777777;
					line-height: 50upx;
					margin-right: 30upx;
				}
				>view:last-child{
					height: 100%;
					line-height: 50upx;
					color: #ff4040;
					font-size: 30upx;
					font-weight: 500;
				}
				
			}
		}
	}
}
</style>
